<?php
namespace App\Http\Controllers\App;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Order;
use Illuminate\Support\Facades\DB;

include (base_path('extend/Alimsg/Alimsg.php')); 

class TestController extends Controller
{	
	
    public function index()
    {	 
    	// DB::connection()->enableQueryLog();  
    	$sql = DB::table('wd_goods')->get();
    	 // $log = DB::getQueryLog();
    	dd($log);   //打印sql语句
    	
    }


    public function cc()
    { 
       

    	$model = new \ Alimsg();

    	$aa = $model->sendSms('18137826597', 'reg', '4582');

        echo '<pre>';
        var_dump($aa);
    	dd($aa->Code);
    }


    public function dd()
    {

        $num = Order::countOrder(1, 10);
        dd($num);
    }
}
